package main

import (
	"tk_server/config"
	"tk_server/net"
	"tk_server/server/login"
)

func main() {
	host := config.File.MustValue("login_server", "host", "127.0.0.1")
	port := config.File.MustValue("login_server", "port", "8003")
	s := net.NewServer(host + ":" + port)

	login.Init()
	loginRouter := login.Router

	s.Router(loginRouter)
	s.Start()
}
